/* 学生仪表板样式 */
.student-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    min-height: 100vh;
    background: #f8f9fa;
}

/* 顶部导航栏 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.user-role {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.student-badge {
    background: #28a745;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    padding: 8px 16px;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e9ecef;
    color: #333;
}

.logout-icon {
    font-size: 16px;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    height: calc(100vh - 70px);
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e1e5e9;
    padding: 20px 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
}

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100vh - 70px);
}

/* 欢迎区域样式 */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text {
    flex: 1;
}

.welcome-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.greeting-icon {
    font-size: 24px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.greeting-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.welcome-stats {
    display: flex;
    gap: 20px;
    margin-left: 40px;
}

.welcome-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-stats .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.welcome-stats .stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.welcome-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Toast通知样式 */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

.toast-notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 320px;
    max-width: 400px;
    margin-bottom: 8px;
    pointer-events: auto;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 新通知进入动画 */
.toast-notification.entering {
    animation: slideInFromTop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 通知离开动画 */
.toast-notification.leaving {
    animation: slideOutToTop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideOutToTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* 通知位置控制 */
.toast-0 {
    transform: translateY(0);
}

.toast-1 {
    transform: translateY(36px);
}

.toast-2 {
    transform: translateY(72px);
}

.toast-3 {
    transform: translateY(108px);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.toast-text {
    font-size: 12px;
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 公告轮播样式 */
.announcement-carousel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.carousel-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.carousel-indicator {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.carousel-content {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.carousel-text {
    flex: 1;
}

.carousel-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.carousel-item-text {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-time {
    font-size: 11px;
    color: #999;
}

.content-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header-right {
    flex-shrink: 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 公告卡片样式 */
.announcement-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 280px;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

.announcement-text {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.announcement-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-number {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 内容区块 */
.section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

/* 考试列表 */
.exam-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exam-card {
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.exam-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.exam-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.exam-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.exam-status.completed {
    background: #e8f5e8;
    color: #28a745;
}

.exam-status.ongoing {
    background: #fff3e0;
    color: #ff9800;
}

.exam-status.upcoming {
    background: #e3f2fd;
    color: #2196f3;
}

.exam-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.exam-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

/* 快速操作 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.action-btn:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.action-icon {
    font-size: 32px;
}

.action-text {
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .nav-item {
        padding: 10px 16px;
    }

    .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 20px;
    }

    .nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #667eea;
    }

    .content {
        padding: 20px;
    }

    .welcome-section {
        padding: 20px;
    }

    .welcome-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .welcome-stats {
        margin-left: 0;
        justify-content: center;
    }

    .welcome-actions {
        margin-left: 0;
        width: 100%;
    }

    .announcement-card {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .exam-meta {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }

    .logo-text {
        display: none;
    }

    .user-name {
        display: none;
    }

    .content {
        padding: 15px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* 学习进度样式 */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.progress-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.progress-card:hover .progress-title,
.progress-card:hover .progress-desc {
    color: white;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    transition: color 0.3s ease;
}

.progress-card:hover .progress-percentage {
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-card:hover .progress-fill {
    background: rgba(255, 255, 255, 0.3);
}

.progress-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

/* 通知公告样式 */
.notice-list {
    display: grid;
    gap: 16px;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.notice-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.notice-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notice-time {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: 1fr;
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-icon {
        align-self: flex-start;
    }
}

/* 考试页面专用样式 */
.exam-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.exam-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
}

.exam-header-left {
    display: flex;
    align-items: center;
}

.exam-header-center {
    flex: 1;
    text-align: center;
}

.exam-header-right {
    display: flex;
    align-items: center;
}

.exam-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.exam-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 考试页面内容样式 */
.exam-view {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.exam-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.exam-title h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.exam-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.exam-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.timer-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1976d2;
    font-weight: 600;
}

.timer-card.time-warning {
    background: #fff3e0;
    color: #f57c00;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-text {
    font-size: 14px;
    color: #666;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.question-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    background: white;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.question-index {
    font-weight: 600;
    color: #333;
    min-width: 30px;
}

.question-title {
    flex: 1;
    margin: 0;
    color: #333;
}

.question-score {
    color: #666;
    font-size: 14px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: #f5f5f5;
}

.option-key {
    font-weight: 600;
    color: #333;
    min-width: 20px;
}

.option-text {
    color: #333;
}

.answer-input,
.answer-textarea {
    margin-top: 16px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* 考试结果页面样式 */
.exam-result {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.result-overview {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.score-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    min-width: 200px;
}

.score-circle {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #4caf50;
}

.score-total {
    font-size: 24px;
    color: #666;
}

.score-percentage {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.score-grade {
    font-size: 16px;
    color: #4caf50;
    font-weight: 600;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.stat-value.correct {
    color: #4caf50;
}

.stat-value.incorrect {
    color: #f44336;
}

.question-review {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.question-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.question-item.correct {
    border-left: 4px solid #4caf50;
}

.question-item.incorrect {
    border-left: 4px solid #f44336;
}

.question-content {
    margin-top: 16px;
}

.your-answer,
.correct-answer-section {
    margin-bottom: 12px;
}

.correct-answer {
    color: #4caf50;
    font-weight: 600;
}

.incorrect-answer {
    color: #f44336;
    font-weight: 600;
}

.explanation {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.explanation p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn.back {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.action-btn.history {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.download {
    background: #4caf50;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exam-header {
        padding: 0 15px;
    }

    .exam-title {
        font-size: 16px;
    }

    .exam-content {
        padding: 15px;
    }

    .exam-view {
        padding: 20px;
    }

    .exam-header-card {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .exam-controls {
        width: 100%;
        justify-content: space-between;
    }

    .result-overview {
        flex-direction: column;
        gap: 20px;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .action-buttons,
    .result-actions {
        flex-direction: column;
    }
}